↳ Prolog
↳ PrologToPiTRSProof
sum_in_gga([], [], []) → sum_out_gga([], [], [])
sum_in_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_gga(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
U1_gga(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_out_gga(Y1, Y2, Y3)) → sum_out_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
sum_in_gga([], [], []) → sum_out_gga([], [], [])
sum_in_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_gga(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
U1_gga(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_out_gga(Y1, Y2, Y3)) → sum_out_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3))
SUM_IN_GGA(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
SUM_IN_GGA(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → ADD_IN_GGA(X1, X2, X3)
ADD_IN_GGA(s(X), Y, s(Z)) → U3_GGA(X, Y, Z, add_in_gga(X, Y, Z))
ADD_IN_GGA(s(X), Y, s(Z)) → ADD_IN_GGA(X, Y, Z)
U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_GGA(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → SUM_IN_GGA(Y1, Y2, Y3)
sum_in_gga([], [], []) → sum_out_gga([], [], [])
sum_in_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_gga(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
U1_gga(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_out_gga(Y1, Y2, Y3)) → sum_out_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
SUM_IN_GGA(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
SUM_IN_GGA(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → ADD_IN_GGA(X1, X2, X3)
ADD_IN_GGA(s(X), Y, s(Z)) → U3_GGA(X, Y, Z, add_in_gga(X, Y, Z))
ADD_IN_GGA(s(X), Y, s(Z)) → ADD_IN_GGA(X, Y, Z)
U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_GGA(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → SUM_IN_GGA(Y1, Y2, Y3)
sum_in_gga([], [], []) → sum_out_gga([], [], [])
sum_in_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_gga(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
U1_gga(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_out_gga(Y1, Y2, Y3)) → sum_out_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
ADD_IN_GGA(s(X), Y, s(Z)) → ADD_IN_GGA(X, Y, Z)
sum_in_gga([], [], []) → sum_out_gga([], [], [])
sum_in_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_gga(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
U1_gga(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_out_gga(Y1, Y2, Y3)) → sum_out_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
ADD_IN_GGA(s(X), Y, s(Z)) → ADD_IN_GGA(X, Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
ADD_IN_GGA(s(X), Y) → ADD_IN_GGA(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
SUM_IN_GGA(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → SUM_IN_GGA(Y1, Y2, Y3)
sum_in_gga([], [], []) → sum_out_gga([], [], [])
sum_in_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_gga(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
U1_gga(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_in_gga(Y1, Y2, Y3))
U2_gga(X1, Y1, X2, Y2, X3, Y3, sum_out_gga(Y1, Y2, Y3)) → sum_out_gga(.(X1, Y1), .(X2, Y2), .(X3, Y3))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
SUM_IN_GGA(.(X1, Y1), .(X2, Y2), .(X3, Y3)) → U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_in_gga(X1, X2, X3))
U1_GGA(X1, Y1, X2, Y2, X3, Y3, add_out_gga(X1, X2, X3)) → SUM_IN_GGA(Y1, Y2, Y3)
add_in_gga(0, X, X) → add_out_gga(0, X, X)
add_in_gga(s(X), Y, s(Z)) → U3_gga(X, Y, Z, add_in_gga(X, Y, Z))
U3_gga(X, Y, Z, add_out_gga(X, Y, Z)) → add_out_gga(s(X), Y, s(Z))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
SUM_IN_GGA(.(X1, Y1), .(X2, Y2)) → U1_GGA(Y1, Y2, add_in_gga(X1, X2))
U1_GGA(Y1, Y2, add_out_gga(X3)) → SUM_IN_GGA(Y1, Y2)
add_in_gga(0, X) → add_out_gga(X)
add_in_gga(s(X), Y) → U3_gga(add_in_gga(X, Y))
U3_gga(add_out_gga(Z)) → add_out_gga(s(Z))
add_in_gga(x0, x1)
U3_gga(x0)
From the DPs we obtained the following set of size-change graphs: